<template>
  <div class="login-warp">
    <div>11</div>
  </div>
</template>

<script setup lang="ts">
import { useTestStore } from '@/store/test'
import { storeToRefs } from 'pinia'
import { onMounted } from 'vue'

const { count, doubleCount } = storeToRefs(useTestStore())
const { changeCount } = useTestStore()
console.log(count)
console.log(doubleCount)
onMounted(() => {
  changeCount(10)
})
</script>
